package com.howie.hmvc.handler;

import java.lang.reflect.Method;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface IErrorHandler {

	/**
	 * 产生异常,可能为执行的方法中抛出异常或参数验证出错
	 * @param throwable
	 * @param request
	 * @param response
	 * @throws Exception
	 */
	public void execute(Method method,Throwable throwable,HttpServletRequest request,HttpServletResponse response)throws Throwable;
	
}
